package com.atguigu.ssyx.sys.controller;


import com.atguigu.ssyx.common.result.Result;
import com.atguigu.ssyx.sys.service.IWareService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 仓库表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-09-13
 */
@RestController
@RequestMapping("/admin/sys/ware")
@Api(tags = "仓库管理")
@CrossOrigin
@RequiredArgsConstructor
public class WareController {
    private final IWareService wareService;


  /*  rl: `${api_name}/findAllList`,
    method: 'get'*/
    //1.查询所有仓库信息
    //2.根据区域关键字查询地区信息

    @ApiOperation("查询所有仓库信息")
    @GetMapping("findAllList")
    public Result findAllList() {
        return Result.ok(wareService.list());

    }
}
